import { Component, OnInit ,ContentChild,SimpleChanges} from '@angular/core';

@Component({
  selector: 'app-page01',
  templateUrl: './page01.component.html',
  styleUrls: ['./page01.component.css']
})
export class Page01Component implements OnInit {

    gutter=10
    type='heihe';
    ///radio
    radio_model='10';
    radio_group_model='3';

    radioList=[{name:'radio01',label:'上海'},{name:'radio02',label:'深圳',disabled:true},{name:'radio03',label:'香港'}]
    constructor() { }

    ngOnInit() {

        // setInterval(()=>{
        //     console.log(this.radio_group_model)
        // },2000)
    }

    addGutter(){
        this.gutter++;
    }

    addGutter2(e){
        console.log('addgutter')
        this.gutter++;
        
    }
    handleERGchange(e){
        console.log('erg is changing',e)
    }
    ngOnChanges(changed:SimpleChanges){
        console.log(changed)
    }
}
